Skip to content

8386637: PPC64: Implement Thread.onSpinWait() intrinsic and SpinPause using SMT priority hints#31513

Open
dbriemann wants to merge 1 commit into
openjdk:masterfrom
dbriemann:dlb/spinwait
Open

8386637: PPC64: Implement Thread.onSpinWait() intrinsic and SpinPause using SMT priority hints#31513
dbriemann wants to merge 1 commit into
openjdk:masterfrom
dbriemann:dlb/spinwait

Conversation

@dbriemann

@dbriemann dbriemann commented Jun 15, 2026

Copy link
Copy Markdown
Member

Benchmarking with ThreadOnSpinWaitProducerConsumer.java on Power10 with SMT8
have shown the following results:

Pinning the HW threads to the same core via taskset -c 0,2:
intrinsic disabled: 1490.2 us/op
intrinsic enabled: 340.3 us/op
=> 4.4x performance

Pinning the HW threads to different cores via taskset -c 0,8:
intrinsic disabled: 1047.8 µs/op
intrinsic enabled: 804.4 µs/op
=> 1.3x performance

Single hardware thread (taskset -c 0):
intrinsic disabled: 1614.9 µs/op
intrinsic enabled: 1863.3 µs/op
=> 0.87x performance (slight regression)

The slight regression on 1 HW thread seems negligible since that scenario is highly unlikely on modern processors.



Progress

  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • Change must be properly reviewed (2 reviews required, with at least 1 Reviewer, 1 Author)

Integration blocker

 ⚠️ Title mismatch between PR and JBS for issue JDK-8386637

Issue

  • JDK-8386637: PPC64: Implement Thread.onSpinWait() intrinsic and SpinPause() using SMT priority hints (Enhancement - P4) ⚠️ Title mismatch between PR and JBS.

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/31513/head:pull/31513
$ git checkout pull/31513

Update a local copy of the PR:
$ git checkout pull/31513
$ git pull https://git.openjdk.org/jdk.git pull/31513/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 31513

View PR using the GUI difftool:
$ git pr show -t 31513

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/31513.diff

Using Webrev

Link to Webrev Comment

@bridgekeeper

bridgekeeper Bot commented Jun 15, 2026

Copy link
Copy Markdown

👋 Welcome back dbriemann! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk

openjdk Bot commented Jun 15, 2026

Copy link
Copy Markdown

❗ This change is not yet ready to be integrated.
See the Progress checklist in the description for automated requirements.

@openjdk

openjdk Bot commented Jun 15, 2026

Copy link
Copy Markdown

@dbriemann The following label will be automatically applied to this pull request:

  • hotspot

When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command.

@openjdk

openjdk Bot commented Jun 15, 2026

Copy link
Copy Markdown

The total number of required reviews for this PR has been set to 2 based on the presence of this label: hotspot. This can be overridden with the /reviewers command.

@openjdk openjdk Bot added the rfr Pull request is ready for review label Jun 15, 2026
@mlbridge

mlbridge Bot commented Jun 15, 2026

Copy link
Copy Markdown

Webrevs

@TheRealMDoerr TheRealMDoerr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@TheRealMDoerr

Copy link
Copy Markdown
Contributor

Nice improvement! You need to fix the title mismatch (see above).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hotspot [email protected] rfr Pull request is ready for review

Development

Successfully merging this pull request may close these issues.

2 participants